package io.openkunlun.javadsl;

/**
 * @author Srowen
 * @date Created on 2022/3/15
 * @description
 */
public interface ContextStorage {

    /**
     * @return
     */
    Context current();

    /**
     * @param toAttach
     * @return
     */
    Context attach(Context toAttach);

    /**
     * @param toDetach
     * @param toRestore
     */
    void detach(Context toDetach, Context toRestore);
}
